home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 10 Scripting / 01 Berger / SCC.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-09  |  475 b   |  17 lines

  1. #ifndef __SCC_H__
  2. #define __SCC_H__
  3.  
  4. // Every rule in Bison have an associated type or "lvalue".  Bison expects a
  5. // program to override the 'YYSTYPE' macro with the type name.  Here, we
  6. // define all rules in Bison are a PTNode smart pointer.
  7. #define YYSTYPE PTNodePtr
  8.  
  9. // Extern a few functions that are needed by Flex & Bison to communicate to
  10. // each other.
  11. extern int yyerror( char *err );
  12. extern int yylex();
  13. extern int yyparse();
  14.  
  15.  
  16. #endif // __SCC_H__
  17.